package com.yurun.orgstudentmodule.mapper;

import com.yurun.commonapi.pojo.Device;
import com.yurun.commonapi.pojo.Sign;
import com.yurun.commonapi.pojo.StudentDocument;
import com.yurun.commonapi.vo.DeviceListVO;
import com.yurun.commonapi.vo.PersonVO;
import com.yurun.commonapi.vo.StudentFaceVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

@Repository
public interface FaceMapper {

    int sign(Sign sign);

    Sign getOneSign(Sign sign);

    Sign getOneSignInsert(Sign sign);

    int addDevice(Device device);

    List<Device> getDeviceList(DeviceListVO deviceListVO);

    int deleteDevice(Device device);

    int updateDevice(Device device);

    int updateSign(Sign sign);

    int updateSignInsert(Sign sign);

    List<StudentFaceVO> getAll(@Param("organizationId")BigInteger organizationId, @Param("branchId")BigInteger branchId);

    Device getOneDevice(PersonVO personVO);

    List<Device> getMoreDeviceList(PersonVO personVO);
}
